package org.ling.xuan.dialog;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import org.jetbrains.annotations.Nullable;
import org.ling.xuan.entity.mo.MarkFile;
import org.ling.xuan.pannel.MarkFileListPanel;

import javax.swing.*;
import java.util.List;

public class MarkFileListDialog extends DialogWrapper {
    private final MarkFileListPanel markFileListPanel;

    public MarkFileListDialog(@Nullable Project project, boolean canBeParent, List<MarkFile> fileList) {
        super(project, canBeParent);
        setTitle("Mark File");
        markFileListPanel = new MarkFileListPanel(fileList, false);
        init();
    }


    @Override
    protected @Nullable JComponent createCenterPanel() {
        return markFileListPanel;
    }
}
